Skip to main content

The Drake Saga - ASCII art video!


Published 2012


A reformat of The Drake Saga1 short lightsaber video
redone into ASCII art!

There's even an HD/SD toggle in the video player for 4x more/less characters 8-)

Still image from the video



drascii.jpg



How to


Here's how I did it (this is a bash script):


set -x;
SRC=http://archive.org/download/drake_saga1/drake_saga1.avi;
FPS=30;
HD=0;
mkdir -p ~/_/aa-sd/;
mkdir -p ~/_/aa/;

if [ "$HD" == "1" ]; then
cd ~/_/aa/;
HT=136;
PG="2500x2136"
CROP="-crop 0x93% +repage" # sure IMagick, sure (makes 2500x1986)
SZ=1280x960;
BR=1500;
else
cd ~/_/aa-sd/;
HT=68;
PG="1226x1120";
CROP="-crop 0x86% +repage" # sure IMagick, sure (makes 1226x963)
SZ=640x480;
BR=512;
fi

# copy audio. copy each JPEG frame for each in the motion-JPEG AVI
ffmpeg -i $SRC -vn -acodec copy audio.wav;
ffmpeg -i $SRC -an -vcodec copy -r $FPS f%04d.jpg;

# use "jp2a" to convert each JPEG frame to ASCII text. custom height
for i in f*jpg; do jp2a $i --height=$HT --output=$i.txt; echo -n .; done;

# use ImageMagick "convert" to convert ASCII to JPEG.
# trickiness parts: make sure to use a monospace font
# output size a bit wonky, custom trim back borders
for i in *jpg.txt; do convert -page $PG -background black -gravity northwest -fill '#7FFF00' -font /usr/share/fonts/truetype/*droid/DroidSansMono.ttf $i $CROP a$i.jpg; echo -n .; done;

# convert back to motion JPEG, (fixing aspect ratio stretch, while at it)
ffmpeg -y -r $FPS -i af%04d.jpg.txt.jpg -r $FPS -vcodec copy test.avi;

# convert to a nice flash plugin web playable h.264
# readd back in audio. source of my script is:
# http://archive.org/~tracey/downloads/mp4-maker.sh
yes|env SZ=$SZ BR=$BR AUDIO=audio.wav mp4-maker.sh test.avi;
mv t-*kbps*.mp4 test.mp4;

set +x;


Run time 1 minute 22 seconds
Producer Tracey Jaquith
Production Company PoohBot Pictures
Audio/Visual stereo, color

Reviews

There are no reviews yet. Be the first one to write a review.
PEOPLE ALSO FOUND
PoohBot Pictures
60
0
0
PoohBot Pictures
by Tracey Jaquith
1,585
0
0
PoohBot Pictures
24
0
0
PoohBot Pictures
by Tracey Jaquith
69
0
0
PoohBot Pictures
by Tracey Jaquith
844
0
0
PoohBot Pictures
by Tracey Jaquith
1,071
0
0
PoohBot Pictures
by Tracey Jaquith
29
0
0
PoohBot Pictures
by Tracey Jaquith
842
0
0
PoohBot Pictures
by Tracey Jaquith
1,479
0
0